package com.example.demo.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "商家信息")
@TableName("business")
public class Business {
    //Business实体属性
    @ApiModelProperty(value="商家ID",required = true)
    @TableId(value = "business_id",type= IdType.AUTO)
    private Integer businessId;
    @ApiModelProperty(value="商家手机",required = true)
    private String businessPhone;
    @ApiModelProperty(value="商家名称",required = true)
    private String businessName;
    @ApiModelProperty(value="商家密码",required = true)
    private String businessPassword;
    @ApiModelProperty(value="营业代表人")
    private String businessRepres;
    @ApiModelProperty(value="商家地址")
    private String businessLocation;
    @ApiModelProperty(value="商家营业执照")
    private String businessLicenseNumber;
    @ApiModelProperty(value = "角色")
    private String role;
}
